import {lazy} from "react"
import {Navigate} from "react-router-dom"
const Home = lazy(()=>import("../pages/Home"))
const Classfily = lazy(()=>import("../pages/Classfily"))
const Login = lazy(()=>import("../pages/Login"))
const Search = lazy(()=>import("../pages/Search"))
const Bookshelf = lazy(()=>import("../pages/Bookshelf"))
const Info = lazy(()=>import("../pages/Info"))
const routerconfig = [
    {
        path:"/home",
        element:<Home></Home>
    },
    {
        path:"/classfily",
        element:<Classfily></Classfily>
    },
    {
        path:"/Login",
        element:<Login></Login>
    },
    {
        path:"/search",
        element:<Search></Search>
    },
    {
        path:"/bookshelf",
        element:<Bookshelf></Bookshelf>
    },
    {
        path:"/info",
        element:<Info></Info>
        
    },
    {
        path:"/",
        element:<Navigate to="/home"></Navigate>
    }
]
export default routerconfig